@include("system::admin.layouts._header")
<body>
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form" method="post">

        <div class="layui-form-item">
            <label class="layui-form-label required">AccessKey</label>
            <div class="layui-input-block">
                <input type="text" name="access_key" class="layui-input" lay-verify="required" lay-reqtext="请输入AccessKey" placeholder="请输入AccessKey" value="{{$data->access_key}}">
                <tip>填写AccessKey。</tip>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">AccessSecret</label>
            <div class="layui-input-block">
                <input type="text" name="access_secret" class="layui-input" lay-verify="required" lay-reqtext="请输入AccessSecret" placeholder="请输入AccessSecret" value="{{$data->access_secret}}">
                <tip>填写AccessSecret。</tip>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">发信地址</label>
            <div class="layui-input-block">
                <input type="text" name="account_name" class="layui-input" lay-verify="required" lay-reqtext="请输入发信地址" placeholder="请输入发信地址" value="{{$data->account_name}}">
                <tip>填写发信地址。</tip>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">默认模板</label>
            <div class="layui-input-block">
                <input type="radio" name="is_default" lay-skin="primary" @if($data->is_default == 1) checked @endif value="1" title="是">
                <input type="radio" name="is_default" lay-skin="primary" @if($data->is_default == 0) checked @endif value="0" title="否">
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label required">地域</label>
            <div class="layui-input-block">
                <input type="text" name="region" class="layui-input" lay-verify="required" lay-reqtext="请输入地域" placeholder="请输入地域" value="{{$data->region}}">
                <tip>填写地域。</tip>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">发件别名</label>
            <div class="layui-input-block">
                <input type="text" name="alias" class="layui-input" lay-verify="required" lay-reqtext="请输入发件别名" placeholder="请输入发件别名" value="{{$data->alias}}">
                <tip>填写发件别名。</tip>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="remark" class="layui-textarea"
                          placeholder="请输入备注">{{$data->remark}}</textarea>
                <tip>填写备注。</tip>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
</body>
</html>
